//
//  AppCommonData.swift
//  WZApp
//
//  Created by evol on 2018/6/29.
//  Copyright © 2018年 evol. All rights reserved.
//

import UIKit
import RxSwift
import RxCocoa

class AppCommonData {
    static let instance = AppCommonData()
    
    var tagModels = BehaviorRelay(value: [ELTagModel]())
    
    let disposeBag = DisposeBag()
    
    open class var share: AppCommonData {
        return instance
    }
    
    init() {
        ELAppService.loadLabels().subscribe(onNext:{ [weak self] (results) in
            self?.tagModels.accept( results )
        }).disposed(by: disposeBag)
    }
}
